package b.p.b;

import android.view.View;
import androidx.recyclerview.widget.RecyclerView.LayoutParams;
import androidx.recyclerview.widget.RecyclerView.m;

/* compiled from: OrientationHelper */
public final class x extends z {
    public x(m mVar) {
        super(mVar, null);
    }

    public int b(View view) {
        return this.a.I(view) + ((LayoutParams) view.getLayoutParams()).rightMargin;
    }

    public int c(View view) {
        LayoutParams layoutParams = (LayoutParams) view.getLayoutParams();
        return (this.a.H(view) + layoutParams.leftMargin) + layoutParams.rightMargin;
    }

    public int d(View view) {
        LayoutParams layoutParams = (LayoutParams) view.getLayoutParams();
        return (this.a.G(view) + layoutParams.topMargin) + layoutParams.bottomMargin;
    }

    public int e(View view) {
        return this.a.F(view) - ((LayoutParams) view.getLayoutParams()).leftMargin;
    }

    public int f() {
        return this.a.p;
    }

    public int g() {
        m mVar = this.a;
        return mVar.p - mVar.Q();
    }

    public int h() {
        return this.a.Q();
    }

    public int i() {
        return this.a.n;
    }

    public int j() {
        return this.a.o;
    }

    public int k() {
        return this.a.P();
    }

    public int l() {
        m mVar = this.a;
        return (mVar.p - mVar.P()) - this.a.Q();
    }

    public int n(View view) {
        this.a.W(view, true, this.c);
        return this.c.right;
    }

    public int o(View view) {
        this.a.W(view, true, this.c);
        return this.c.left;
    }

    public void p(int i) {
        this.a.c0(i);
    }
}
